package com.fast.cms.model.article;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.fast.base.db.model.Commnent;
import com.fast.base.validate.Validator.DateFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 *
 * 类名:com.fast.cms.model.article.Feedback
 * 
 * <pre>
 * 标题:意见反馈
 * 编写者:lushuifa
 * 创建时间:2017年5月26日 上午12:37:22
 * </pre>
 */
@Entity
@Table(name = "T_cms_Feedback")
@DynamicInsert(true)
@DynamicUpdate(true)
@Commnent("意见反馈")
public class Feedback implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5105096028520222875L;
	// =========================head===================================
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, length = 10)
	private int id = 0;
	private String uuid = "";// 唯一ID
	// =========================body===================================
	private String content = "";// 意见内容
	private String mobile = "";// 手机号
	private String email = "";// 手机号
	private String nickName = "";// 如果称呼
	private int isVisit = 0;// 是否回访 0斩无 1已回访 2无需回访
	@JsonFormat(pattern="yyyy-MM-dd") 
	private Date visitDate;// 回访时间

	// =========================foot===================================
	// 操作信息
	@Commnent("编辑人ID")
	@Column(name = "editor_id", length = 11)
	private int editorId = 0;// 编辑人Id
	@Commnent("编辑人")
	@Column(name = "editor_name", length = 32)
	private String editorName = "";// 编辑人
	@Commnent("编辑时间")
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "edit_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") 
	private Date editTime;// 编辑时间
	@Commnent("创建人ID")
	@Column(name = "creater_id", length = 11)
	private int createrId = 0;// 编辑人Id
	@Commnent("创建人")
	@Column(name = "creater", length = 32)
	private String creater = "";// 编辑人
	@Commnent("创建时间")
	@Column(name = "create_time", length = 32)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	@Commnent("删除标识")
	@Column(name = "delete_flag", length = 1)
	private int deleteFlag = 0;// 默认为不删除，1为删除

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public int getIsVisit() {
		return isVisit;
	}

	public void setIsVisit(int isVisit) {
		this.isVisit = isVisit;
	}

	public Date getVisitDate() {
		return visitDate;
	}

	public void setVisitDate(Date visitDate) {
		this.visitDate = visitDate;
	}

	public int getEditorId() {
		return editorId;
	}

	public void setEditorId(int editorId) {
		this.editorId = editorId;
	}

	public String getEditorName() {
		return editorName;
	}

	public void setEditorName(String editorName) {
		this.editorName = editorName;
	}

	public Date getEditTime() {
		return editTime;
	}

	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}

	public int getCreaterId() {
		return createrId;
	}

	public void setCreaterId(int createrId) {
		this.createrId = createrId;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Override
	public String toString() {
		return "Feedback [id=" + id + ", uuid=" + uuid + ", content=" + content + ", mobile=" + mobile + ", email="
				+ email + ", nickName=" + nickName + ", isVisit=" + isVisit + ", visitDate=" + visitDate + ", editorId="
				+ editorId + ", editorName=" + editorName + ", editTime=" + editTime + ", createrId=" + createrId
				+ ", creater=" + creater + ", createTime=" + createTime + ", deleteFlag=" + deleteFlag + "]";
	}

}
